﻿<UserControl x:Class="GooNews.Controls.AppHeader"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:ctrls="clr-namespace:GooNews.Controls"
             mc:Ignorable="d"
             FontFamily="{StaticResource PhoneFontFamilyNormal}"
             FontSize="{StaticResource PhoneFontSizeNormal}"
             Foreground="{StaticResource PhoneForegroundBrush}"
             d:DesignHeight="30"
             d:DesignWidth="480">

  <Grid x:Name="LayoutRoot"
        Margin="4">
    <Grid.ColumnDefinitions>
      <ColumnDefinition Width="Auto" />
      <ColumnDefinition Width="Auto" />
      <ColumnDefinition />
    </Grid.ColumnDefinitions>
    <ctrls:GooNewsIcon Height="24"
                       VerticalAlignment="Top"
                       HorizontalAlignment="Left"
                       Width="24"
                       Margin="0,0,4,0" />
    <TextBlock TextWrapping="Wrap"
               Text="GooNews"
               Grid.Column="1"
               Foreground="{StaticResource foreBrush}"
               FontFamily="{StaticResource PhoneFontFamilySemiLight}"
               FontSize="{StaticResource PhoneFontSizeSmall}" />
    <TextBlock Grid.Column="2"
               Text="{Binding ErrorMessage, Source={StaticResource theVM}}"
               FontSize="{StaticResource PhoneFontSizeSmall}"
               FontFamily="{StaticResource PhoneFontFamilyLight}"
               FontStyle="Italic"
               Foreground="{StaticResource foreBrush}"
               HorizontalAlignment="Right"
               Margin="4 0" />
  </Grid>
</UserControl>
